#ifndef ADMINPAGE_H
#define ADMINPAGE_H
#include <QCoreApplication>
#include <QFile>
#include <QKeyEvent>
#include <QMessageBox>
#include <QRandomGenerator>
#include <QWidget>
#include "dlg_adduser.h"
#include "page_login.h"
#include "stumysql.h"
namespace Ui {
class AdminPage;
}

class AdminPage : public QWidget
{
    Q_OBJECT

public:
    explicit AdminPage(QWidget *parent = nullptr);
    ~AdminPage();
    //virtual void keyPressEvent(QKeyEvent *event);

private slots:
    void on_btn_add_clicked();

    void on_btn_del_clicked();

    void on_btn_update_clicked();

    void on_btn_search_clicked();

private:
    void updateTable();

private:
    Ui::AdminPage *ui;
    Page_login m_dlgLogin;
    stumySql *m_ptrStumysql;

    Dlg_addUser m_dlg_addUser;
};

#endif // ADMINPAGE_H
